<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="../base/base.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>修改购销合同</title>
    <script language="javascript" src="${ctx}/js/datepicker/WdatePicker.js"></script>
</head>
<body>
<form method="post">
    <div id="menubar">
        <div id="middleMenubar">
            <div id="innerMenubar">
                <div id="navMenubar">
                    <ul>
                        <li id="save"><a href="#" onclick="formSubmit('update','_self');this.blur();">确定</a></li>
                        <li id="back"><a href="${pageContext.request.contextPath}/cargo/list">返回</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="textbox" id="centerTextbox">
        <div class="textbox-header">
            <div class="textbox-inner-header">
                <div class="textbox-title">
                    修改购销合同信息
                </div>
            </div>
        </div>
        <div>
            <div>
                <table class="commonTable" cellspacing="1">
                    <input type="hidden" name="contractId" value="${obj.contractId}"/>
                    <tr>
                        <td class="columnTitle_mustbe">客户名称：</td>
                        <td class="tableContent"><input type="text" name="customName" value="${obj.customName}" title="customName"/></td>
                        <td class="columnTitle_mustbe">收购方：</td>
                        <td class="tableContent"><input type="text" name="offeror" value="${obj.offeror }" title="offeror"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">合同号：</td>
                        <td class="tableContent"><input type="text" name="contractNo" value="${obj.contractNo }" title="contractNo"/></td>
                        <td class="columnTitle_mustbe">签单日期：</td>
                        <td class="tableContent">
                            <input type="text" style="width: 90px" name="signingDate" class="Wdate"
                                   value="<fmt:formatDate value="${obj.signingDate }" pattern="yyyy-MM-dd"/>"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});" title="signingDate"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">制单人：</td>
                        <td class="tableContent"><input type="text" name="inputBy" value="${obj.inputBy }" title="inputBy"/></td>
                        <td class="columnTitle_mustbe">审单人：</td>
                        <td class="tableContent"><input type="text" name="checkBy" value="${obj.checkBy }" title="checkBy"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">验货员：</td>
                        <td class="tableContent"><input type="text" name="inspector" value="${obj.inspector }" title="insepctor"/></td>
                        <td class="columnTitle_mustbe">总金额：</td>
                        <td class="tableContent"><input type="text" name="totalAmount" value="${obj.totalAmount}" title="totalAmount"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">要求：</td>
                        <td class="tableContent"><input type="text" name="crequest" value="${obj.crequest}" title="crequest"/></td>
                        <td class="columnTitle_mustbe">交货期限：</td>
                        <td class="tableContent">
                            <input type="text" style="width: 90px" name="deliveryPeriod" class="Wdate"
                                   value="<fmt:formatDate value="${obj.deliveryPeriod }" pattern="yyyy-MM-dd"/>"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});" title="deliveryPeriod"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">船期：</td>
                        <td class="tableContent">
                            <input type="text" style="width: 90px" name="shipTime" class="Wdate"
                                   value="<fmt:formatDate value="${obj.shipTime}" pattern="yyyy-MM-dd"/>"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});" title="shipTime"/>
                        </td>
                        <td class="columnTitle_mustbe">贸易条款：</td>
                        <td class="tableContent"><input type="text" name="tradeTerms" value="${obj.tradeTerms }" title="tradeTerms"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">打印版式：</td>
                        <td class="tableContent">
                            <input type="radio" name="printStyle" value="2" <c:if
                                    test="${obj.printStyle=='2'}"> checked="checked"</c:if> title="printStyle"/>两款
                            <input type="radio" name="printStyle" value="1" <c:if
                                    test="${obj.printStyle=='1'}"> checked="checked"</c:if> title="printStype"/>一款
                        </td>
                        <td class="columnTitle_mustbe">归档前状态：</td>
                        <td class="tableContent"><input type="text" name="oldState" value="${obj.oldState}" title="oldState"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">状态：</td>
                        <td class="tableContent"><input type="text" name="state" value="${obj.state}" title="state"/></td>
                        <td class="columnTitle_mustbe">走货状态：</td>
                        <td class="tableContent"><input type="text" name="outState" value="${obj.outState}" title="outState"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">重要程度：</td>
                        <td class="tableContent">
                            <input type="radio" name="importNum" value="3" class="input" <c:if
                                    test="${obj.importNum==3}"> checked="checked"</c:if> title="importNum"/>★★★
                            <input type="radio" name="importNum" value="2" class="input" <c:if
                                    test="${obj.importNum==2}"> checked="checked"</c:if> title="importNum"/>★★
                            <input type="radio" name="importNum" value="1" class="input" <c:if
                                    test="${obj.importNum==1}"> checked="checked"</c:if> title="importNum"/>★
                        </td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">说明：</td>
                        <td class="tableContent"><textarea name="remark"
                                                           style="height:200px;width: 400px" title="remark">${obj.remark}</textarea>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>
